package com.starhub.engine.document.result;

import lombok.Data;

@Data
public class DocumentContentResult {
    private boolean success;
    private String content;
    private String message;

    public static DocumentContentResult fail(String message) {
        DocumentContentResult result = new DocumentContentResult();
        result.setSuccess(false);
        result.setMessage(message);
        return result;
    }

    public static DocumentContentResult success(String content) {
        DocumentContentResult result = new DocumentContentResult();
        result.setContent(content);
        result.setSuccess(true);
        return result;
    }
}
